package com.atguigu.springcloud.lb;

import org.springframework.cloud.client.ServiceInstance;

import java.util.List;

/**
 * @author Tu
 * @date 2023/4/12 17:19
 */
public interface LoadBalancer {

    /**
     * 模拟源码，获取服务
     *
     * @param serviceInstances
     * @return
     */
    ServiceInstance getServiceInstance(List<ServiceInstance> serviceInstances);

}
